package com.cmj.minemodule;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.alibaba.android.arouter.launcher.ARouter;


public class MeFragment extends Fragment implements View.OnClickListener {
    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.mine_fragment_mine, container, false);
        view.findViewById(R.id.btn).setOnClickListener(this);
        return view;
    }

    @Override
    public void onClick(View view) {
        ARouter.getInstance().build("/a/r").
                withString("name", "cmj")
                .withString("color", "blue").navigation();


    }
}
